package com.hcloud.hcloudbasedemo

import com.hcloud.baselib.common.StateLiveData
import com.hcloud.baselib.viewmodel.BaseViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject


@HiltViewModel
class TestVM @Inject constructor(private val testRepo: TestRepo) : BaseViewModel() {

    val loginLiveData = StateLiveData<LoginRes>()

    fun getData() {
        launch {
            testRepo.getTestData(loginLiveData)
        }
    }

}